import {createRouter, createWebHistory, RouteRecordRaw} from "vue-router";

const routes: Array<RouteRecordRaw> = [
    {
        path: "/home",
        name: '首页',
        component: () => import('../page/home.vue')
    },
    {
        path: "/",
        name: '登录',
        component: () => import('../page/login.vue')
    },
]

const router = createRouter({
    history: createWebHistory(),
    routes: routes,
})

export default router